package com.xh.service.imp;

import com.xh.dao.LinkMapper;
import com.xh.service.LinkService;
import com.xh.vo.Link;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LinkServiceImp implements LinkService {
    @Resource
    private LinkMapper linkMapper;
    @Override
    public String queryLink(String name) {
        return linkMapper.queryLink(name);
    }

    @Override
    public List<Link> queryAllLink(Integer userId) {
        return linkMapper.queryAllLink(userId);
    }

    @Override
    public void insertLink(Link link) {
        linkMapper.insertLink(link);
    }
}
